package com.example.demo.config.consumer;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yongen
 * @description: 消费者配置
 * @date 2022/2/9 2:27 PM
 */
@Component
@ConfigurationProperties("rocketmq.consumer")
public class RocketMQConsumerProperties {

  private String namesrvAddr;
  private String group;

  public String getNamesrvAddr() {
    return namesrvAddr;
  }

  public void setNamesrvAddr(String namesrvAddr) {
    this.namesrvAddr = namesrvAddr;
  }

  public String getGroup() {
    return group;
  }

  public void setGroup(String group) {
    this.group = group;
  }
}
